package cn.bdqn.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.bdqn.mapper.TrainMapper;
import cn.bdqn.pojo.Train;
import cn.bdqn.service.TrainService;

@Service("TrainService")
public class TrainServiceImpl implements TrainService{
	
	@Resource
	public TrainMapper trainMapper;

	@Override
	public int modifyTrain(Train train) {
		int result=trainMapper.modifyTrain(train);
		return result;
	}

	@Override
	public int delTrain(Integer trainId) {
		int result=trainMapper.delTrain(trainId);
		return result;
	}

	@Override
	public List<Train> findTrainName(Integer feedBackId) {
		List<Train> list=trainMapper.findTrainName(feedBackId);
		return list;
	}

}
